-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Links markers list dialogs as checklist #245
Links markers list dialogs as checklist #245
Conversation
@@ -47,7 +44,13 @@ const OperationChecklistDialog = WDialog.extend({ | |||
|
|||
_displayDialog: async function () { | |||
const operation = getSelectedOperation(); | |||
this.sortable = this.getListDialogContent(operation, 0, false); // defaults to sorting by op order | |||
loadFaked(operation); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this too "automatic" for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is, this feature is controlled by the user settings (disabled by default)
I only moved the call from addHooks
to _displayDialog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it. Much cleaner than what my initial thought was.
@@ -268,9 +268,14 @@ const OperationChecklistDialog = WDialog.extend({ | |||
}, | |||
}, | |||
]; | |||
}, | |||
|
|||
getListDialogContent: function (operation, items, sortBy, sortAsc) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elegant solution. I like it.
Link list and marker list dialog as checklist dialogs
I'm also considering having a
.getItems
function like.getFields
Need some audit on UI update.
We need to fix current update issues before (see #238)
Fix #239 #240 #242