Resolves #1058 -- dont show cancel button when in teaching mode

This commit is contained in:
Peter Cottle 2023-02-19 16:41:24 -07:00
parent e040e787ba
commit 0bec45844c
3 changed files with 11 additions and 5 deletions

View file

@ -140,7 +140,8 @@ var ConfirmCancelView = ResolveRejectBase.extend({
this.deferred = options.deferred || Q.defer();
this.JSON = {
confirm: options.confirm || intl.str('confirm-button'),
cancel: options.cancel || intl.str('cancel-button')
cancel: options.cancel || intl.str('cancel-button'),
disableCancelButton: !!options.disableCancelButton,
};
this.render();

View file

@ -142,7 +142,8 @@ var InteractiveRebaseView = ContainedBase.extend({
// finally get our buttons
new ConfirmCancelView({
destination: this.$('.confirmCancel'),
deferred: deferred
deferred: deferred,
disableCancelButton: !!this.options.aboveAll,
});
}
});