Add ability to save and view a list of workflows
This CL introduces the following functionality:
- Introduces some logic to handle the persistence of workflows in the
browser storage.
- Lets the user save created workflows in the "create workflow" dialog.
- Shows a list of workflows. If the user hasn't added any workflow, a
placeholder image is shown alongside a text which invites the user to
create a new workflow.
Bug: twpowertools:74
Change-Id: Icba09d20468bafc1415b802a3c935e22669546e6
diff --git a/src/workflows/manager/components/AddDialog.js b/src/workflows/manager/components/AddDialog.js
index 8bf63db..32a2cae 100644
--- a/src/workflows/manager/components/AddDialog.js
+++ b/src/workflows/manager/components/AddDialog.js
@@ -1,6 +1,6 @@
import '@material/mwc-dialog/mwc-dialog.js';
import '@material/web/button/text-button.js';
-import '@material/web/button/tonal-button.js';
+import '@material/web/button/filled-button.js';
import './WorkflowEditor.js';
import {css, html, LitElement} from 'lit';
@@ -35,11 +35,11 @@
@closed=${this._closedDialog}>
<wf-workflow-editor ${ref(this.workflowEditorRef)}>
</wf-workflow-editor>
- <md-tonal-button
+ <md-filled-button
slot="primaryAction"
label="Add"
@click=${this._save}>
- </md-tonal-button>
+ </md-filled-button>
<md-text-button
slot="secondaryAction"
dialogAction="cancel"