always keep confirm in the same location

This commit is contained in:
dkanada 2019-09-05 12:41:39 -07:00
parent 6d3c617c28
commit f862838458
8 changed files with 9 additions and 9 deletions

View file

@ -18,13 +18,13 @@ define(['dialog', 'globalize'], function (dialog, globalize) {
items.push({
name: options.cancelText || globalize.translate('ButtonCancel'),
id: 'cancel',
type: options.primary === 'cancel' ? 'submit' : 'cancel'
type: 'cancel'
});
items.push({
name: options.confirmText || globalize.translate('ButtonOk'),
id: 'ok',
type: options.primary === 'cancel' ? 'cancel' : 'delete'
type: options.primary === 'delete' ? 'delete' : 'submit'
});
options.buttons = items;