* VRFS-3141 - tell user why they can't close JamTrack

This commit is contained in:
Seth Call 2015-05-01 16:34:56 -05:00
parent 3697ca9743
commit 32f0967b2a
1 changed files with 2 additions and 0 deletions

View File

@ -2958,11 +2958,13 @@
if (sessionModel.recordingModel.isRecording()) {
logger.debug("can't close jamtrack while recording")
app.notify({title: 'Can Not Close JamTrack', text: 'A JamTrack can not be closed while recording.'})
return false;
}
if(!sessionModel.selfOpenedJamTracks()) {
logger.debug("can't close jamtrack if not the opener")
app.notify({title: 'Can Not Close JamTrack', text: 'Only the person who opened the JamTrack can close it.'})
return false;
}