From 99ec2b68f7774211f2102ac31adafb11027b1b12 Mon Sep 17 00:00:00 2001 From: Christopher Byrd Date: Fri, 10 Nov 2023 11:42:45 -0800 Subject: [PATCH] updates incomplete workflows modal for superusers #1433 (#1434) --- .../views/components/plugins/init-workflow.js | 3 +++ .../views/components/plugins/init-workflow.htm | 18 +++++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/arches_for_science/media/js/views/components/plugins/init-workflow.js b/arches_for_science/media/js/views/components/plugins/init-workflow.js index 3fa40ee7a..dd1eeafe7 100644 --- a/arches_for_science/media/js/views/components/plugins/init-workflow.js +++ b/arches_for_science/media/js/views/components/plugins/init-workflow.js @@ -13,6 +13,7 @@ define([ }, this); this.shouldShowIncompleteWorkflowsModal = ko.observable(false); + this.requestingUserIsSuperuser = ko.observable(false); this.incompleteWorkflows = ko.observableArray([]); this.incompleteWorkflows.subscribe(incompleteWorkflows => { @@ -35,6 +36,8 @@ define([ return workflowData; })); + + this.requestingUserIsSuperuser(respJSON['requesting_user_is_superuser']); }); // filters out the chemical image workflow, if cloud storage is not enabled. diff --git a/arches_for_science/templates/views/components/plugins/init-workflow.htm b/arches_for_science/templates/views/components/plugins/init-workflow.htm index 5a7312391..f1e32bab7 100644 --- a/arches_for_science/templates/views/components/plugins/init-workflow.htm +++ b/arches_for_science/templates/views/components/plugins/init-workflow.htm @@ -19,12 +19,12 @@ style=" background-color: white; width: 100%; - max-width: 1000px; max-height: 480px; border-radius: 4px; cursor: default; overflow: hidden; " + data-bind="style: {maxWidth: $data.requestingUserIsSuperuser() ? '1200px' : '1000px'}" >
-

{% trans 'You have incomplete workflows' %}

+

{% trans 'Incomplete Workflows' %}

{% trans 'Please either complete or delete the workflows listed below.' %}

-
+
- + + - + + + +
{% trans 'Created' %} + + + {% trans 'User' %} + {% trans 'Workflow Name' %} @@ -59,7 +64,10 @@

{% trans 'You have incomplete workflows' %}