From b192373ae712cdc2f78e071d53a322286fc06a44 Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Mon, 15 Jan 2024 10:47:54 +0100 Subject: [PATCH] (control) Highlight unavailable items (creating, deleting) in node actions views --- .../templates/control/node/actions/partial-load.hdb | 7 +++++-- .../templates/control/node/actions/partial-new-crawl.hdb | 7 +++++-- .../templates/control/node/actions/partial-process.hdb | 7 +++++-- .../templates/control/node/actions/partial-recrawl.hdb | 7 +++++-- .../control/node/actions/partial-restore-backup.hdb | 7 +++++-- 5 files changed, 25 insertions(+), 10 deletions(-) diff --git a/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-load.hdb b/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-load.hdb index dd23b770..480a4327 100644 --- a/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-load.hdb +++ b/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-load.hdb @@ -22,9 +22,12 @@ {{#each allProcessedData}} - + - {{description}} + {{description}} + {{#if new}}[CREATING]{{/if}} + {{#if delete}}[DELETING]{{/if}} + [Details] {{/each}} diff --git a/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-new-crawl.hdb b/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-new-crawl.hdb index 9e0ae7f8..4bd545cd 100644 --- a/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-new-crawl.hdb +++ b/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-new-crawl.hdb @@ -37,9 +37,12 @@ {{#each allCrawlSpecs}} - + - {{description}} + {{description}} + {{#if new}}[CREATING]{{/if}} + {{#if delete}}[DELETING]{{/if}} + [Details] {{/each}} diff --git a/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-process.hdb b/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-process.hdb index cf1538eb..f6df65b0 100644 --- a/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-process.hdb +++ b/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-process.hdb @@ -23,9 +23,12 @@ {{#each allCrawlData}} - + - {{description}} + {{description}} + {{#if new}}[CREATING]{{/if}} + {{#if delete}}[DELETING]{{/if}} + [Details] {{/each}} diff --git a/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-recrawl.hdb b/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-recrawl.hdb index c629c3eb..bf7ccd03 100644 --- a/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-recrawl.hdb +++ b/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-recrawl.hdb @@ -31,9 +31,12 @@ {{#each allCrawlData}} - + - {{description}} + {{description}} + {{#if new}}[CREATING]{{/if}} + {{#if delete}}[DELETING]{{/if}} + [Details] {{/each}} diff --git a/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-restore-backup.hdb b/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-restore-backup.hdb index d5d5c0be..101417a1 100644 --- a/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-restore-backup.hdb +++ b/code/services-core/control-service/src/main/resources/templates/control/node/actions/partial-restore-backup.hdb @@ -22,9 +22,12 @@ {{#each allBackups}} - + - {{description}} + {{description}} + {{#if new}}[CREATING]{{/if}} + {{#if delete}}[DELETING]{{/if}} + [Details] {{/each}}