Skip to content
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

Merged

Conversation

le-jeu
Copy link
Member

@le-jeu le-jeu commented May 21, 2021

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

@@ -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);
Copy link
Member

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?

Copy link
Member Author

@le-jeu le-jeu May 21, 2021

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, ok

Copy link
Member

@cloudkucooland cloudkucooland left a 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) {
Copy link
Member

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.

@cloudkucooland cloudkucooland merged commit 42ba1da into wasabee-project:020_FEATURES May 21, 2021
@SebastienForay SebastienForay added the enhancement New feature or request label May 22, 2021
@SebastienForay SebastienForay added this to the 0.20 milestone May 22, 2021
@le-jeu le-jeu mentioned this pull request Jun 26, 2021
@le-jeu le-jeu deleted the links_markers_dialogs branch July 1, 2021 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants