mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 10:24:38 +08:00
Merge pull request #19761 from davelopez/24.2_move_workflow_save_button
[24.2] Move Workflow Editor save button
This commit is contained in:
@@ -129,15 +129,6 @@
|
||||
<span class="editor-title" :title="name"
|
||||
>{{ name }}
|
||||
<i v-if="hasChanges" class="text-muted"> (unsaved changes) </i>
|
||||
<b-button
|
||||
v-if="hasChanges"
|
||||
id="workflow-save-button"
|
||||
class="py-1 px-2"
|
||||
variant="link"
|
||||
:title="saveWorkflowTitle"
|
||||
@click="saveOrCreate">
|
||||
<FontAwesomeIcon :icon="faSave" />
|
||||
</b-button>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
@@ -154,6 +145,15 @@
|
||||
@click="undoRedoStore.redo()">
|
||||
<FontAwesomeIcon icon="fa-arrow-right" />
|
||||
</b-button>
|
||||
<b-button
|
||||
id="workflow-save-button"
|
||||
class="py-1 px-2"
|
||||
variant="link"
|
||||
:disabled="!hasChanges"
|
||||
:title="saveWorkflowTitle"
|
||||
@click="saveOrCreate">
|
||||
<FontAwesomeIcon :icon="faSave" />
|
||||
</b-button>
|
||||
</b-button-group>
|
||||
</div>
|
||||
<WorkflowGraph
|
||||
|
||||
@@ -98,7 +98,17 @@ export const workflowEditorActivities = [
|
||||
optional: true,
|
||||
},
|
||||
{
|
||||
description: "Save this workflow with a different name and annotation",
|
||||
description: "Save this workflow.",
|
||||
icon: faSave,
|
||||
id: "save-workflow",
|
||||
title: "Save",
|
||||
tooltip: "Save current changes",
|
||||
visible: true,
|
||||
click: true,
|
||||
optional: true,
|
||||
},
|
||||
{
|
||||
description: "Save this workflow with a different name and annotation.",
|
||||
icon: farSave,
|
||||
id: "save-workflow-as",
|
||||
title: "Save as",
|
||||
|
||||
@@ -455,7 +455,6 @@ class TestWithSeleniumMixin(GalaxyTestSeleniumContext, UsesApiTestCaseMixin, Use
|
||||
save_button.wait_for_visible()
|
||||
assert not save_button.has_class("disabled")
|
||||
save_button.wait_for_and_click()
|
||||
save_button.wait_for_absent()
|
||||
self.sleep_for(self.wait_types.UX_RENDER)
|
||||
|
||||
@retry_assertion_during_transitions
|
||||
|
||||
@@ -44,7 +44,7 @@ class TestWorkflowEditor(SeleniumTestCase, RunsWorkflows):
|
||||
|
||||
# shouldn't have changes on fresh load
|
||||
save_button = self.components.workflow_editor.save_button
|
||||
assert save_button.is_absent
|
||||
save_button.assert_disabled()
|
||||
|
||||
self.screenshot("workflow_editor_blank")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user