Bouton "Toujours supprimer"

Label et icône plus clairs
This commit is contained in:
Vincent Vandemeulebrouck 2022-10-04 23:45:14 +02:00
parent 3c86e1b97c
commit 4443548b0e

View File

@ -1,3 +1,4 @@
import { Grammar } from "./grammar.js";
import { ReglesOptionelles } from "./regles-optionelles.js"; import { ReglesOptionelles } from "./regles-optionelles.js";
export class RdDConfirm { export class RdDConfirm {
@ -43,8 +44,8 @@ export class RdDConfirm {
static _createButtonActionSave(options) { static _createButtonActionSave(options) {
return { return {
"actionSave": { "actionSave": {
icon: '<i class="far fa-save"></i>', icon: '<i class="fas fa-user-check"></i>',
label: options.buttonLabel + "<br>(Ne plus demander)", label: "Toujours "+ options.buttonLabel.toLowerCase(),
callback: () => { callback: () => {
ReglesOptionelles.set(options.settingConfirmer, false); ReglesOptionelles.set(options.settingConfirmer, false);
options.onAction(); options.onAction();