diff --git a/app/assets/stylesheets/tailwind/buttons.css b/app/assets/stylesheets/tailwind/buttons.css
index 9f7001362..121cd8b03 100644
--- a/app/assets/stylesheets/tailwind/buttons.css
+++ b/app/assets/stylesheets/tailwind/buttons.css
@@ -114,7 +114,7 @@
}
.btn.btn-light {
- @apply bg-transparent text-sn-blue border-transparent;
+ @apply bg-transparent text-sn-blue border-transparent bg-sn-white;
}
.btn.btn-light.btn-black {
diff --git a/app/javascript/vue/protocol/container.vue b/app/javascript/vue/protocol/container.vue
index 0c1d0ec65..86dbecc38 100644
--- a/app/javascript/vue/protocol/container.vue
+++ b/app/javascript/vue/protocol/container.vue
@@ -175,6 +175,7 @@
+ {{ i18n.t("protocols.steps.add_step") }}
+ {{ i18n.t("protocols.steps.add_step") }}
diff --git a/app/javascript/vue/protocol/step.vue b/app/javascript/vue/protocol/step.vue
index 4f3ef5fab..1c46a33d5 100644
--- a/app/javascript/vue/protocol/step.vue
+++ b/app/javascript/vue/protocol/step.vue
@@ -145,7 +145,19 @@
@attachments:viewMode="changeAttachmentsViewMode"
@attachment:viewMode="updateAttachmentViewMode"/>
+ this.createElement('table', ...args)"
+ @create:checklist="createElement('checklist')"
+ @create:text="createElement('text')"
+ @create:file="openLoadFromComputer"
+ @create:wopi_file="openWopiFileModal"
+ @create:ove_file="openOVEditor"
+ @create:marvinjs_file="openMarvinJsModal($refs.marvinJsButton)"
+ >
+
+ this.createElement('table', ...args)"
+ @create:text="createElement('text')"
+ @create:file="openLoadFromComputer"
+ @create:wopi_file="openWopiFileModal"
+ @create:ove_file="openOVEditor"
+ @create:marvinjs_file="openMarvinJsModal($refs.marvinJsButton)"
+ >
@@ -144,6 +154,7 @@ import Attachments from '../shared/content/attachments.vue';
import InlineEdit from '../shared/inline_edit.vue';
import MenuDropdown from '../shared/menu_dropdown.vue';
import deleteResultModal from './delete_result.vue';
+import ContentToolbar from '../shared/content/content_toolbar';
import AttachmentsMixin from '../shared/content/mixins/attachments.js';
import WopiFileModal from '../shared/content/attachments/mixins/wopi_file_modal.js';
@@ -192,7 +203,8 @@ export default {
InlineEdit,
MenuDropdown,
deleteResultModal,
- StorageUsage
+ StorageUsage,
+ ContentToolbar
},
watch: {
resultToReload() {
@@ -253,16 +265,20 @@ export default {
if (this.urls.update_url) {
menu = menu.concat([{
text: this.i18n.t('my_modules.results.insert.text'),
+ icon: 'sn-icon sn-icon-result-text',
emit: 'create:text'
}, {
text: this.i18n.t('my_modules.results.insert.attachment'),
submenu: this.filesMenu,
+ icon: 'sn-icon sn-icon-file',
position: 'left'
}, {
text: this.i18n.t('my_modules.results.insert.table'),
+ icon: 'sn-icon sn-icon-tables',
emit: 'create:table'
}, {
text: this.i18n.t('my_modules.results.insert.well_plate'),
+ icon: 'sn-icon sn-icon-tables',
submenu: this.wellPlateOptions,
position: 'left'
}]);
diff --git a/app/javascript/vue/shared/content/content_toolbar.vue b/app/javascript/vue/shared/content/content_toolbar.vue
new file mode 100644
index 000000000..f3b2829ad
--- /dev/null
+++ b/app/javascript/vue/shared/content/content_toolbar.vue
@@ -0,0 +1,43 @@
+
+
+
+ {{ i18n.t('protocols.steps.insert.button') }}:
+
+
+
+
+
+
+
+
+
+
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 58aa26ab3..b687d7749 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -3412,6 +3412,7 @@ en:
expand_label: "Expand All"
collapse_label: "Collapse All"
new_step: "New step"
+ add_step: "Add step"
new_step_title: "Create new step"
subtitle: "Protocol Steps"
no_steps: "Protocol has no steps."