From 0a3682804f9acf39cff12826eea04905a211e45d Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Tue, 24 Apr 2018 11:01:55 -0400 Subject: [PATCH 1/3] Revert "Fix links in rule builder to not interfere with the library router." This reverts commit d4a890f2fc46c4dd82a77e3a5772546d88a6b95d. --- .../scripts/components/RuleCollectionBuilder.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/client/galaxy/scripts/components/RuleCollectionBuilder.vue b/client/galaxy/scripts/components/RuleCollectionBuilder.vue index dcf3ebd682db..589446199449 100644 --- a/client/galaxy/scripts/components/RuleCollectionBuilder.vue +++ b/client/galaxy/scripts/components/RuleCollectionBuilder.vue @@ -204,6 +204,7 @@ v-bind:index="target" v-bind:key="target" class="dropdown-item" + href="#" :class="'rule-add-mapping-' + target.replace(/_/g, '-')" @click="addIdentifier(target)"> {{ mappingTargets()[target].label }} @@ -240,7 +241,7 @@ v-on:mouseout.native="map.columns.forEach((col) => unhighlightColumn(col))" :col-headers="colHeaders" />
- One or more column definitions must be specified. These are required to specify how to build collections and datasets from rows and columns of the table. Click here to manage column definitions. + One or more column definitions must be specified. These are required to specify how to build collections and datasets from rows and columns of the table. Click here to manage column definitions.
@@ -253,7 +254,7 @@ - Add / Modify Column Definitions + Add / Modify Column Definitions
@@ -707,7 +708,7 @@ const IdentifierDisplay = { }; const RuleTargetComponent = { - template: `{{title}}`, + template: `{{title}}`, props: { ruleType: { type: String, @@ -1784,9 +1785,4 @@ export default { .fa-wrench { cursor: pointer; } -/* Galaxy's drops underline on a without href, but I cannot use href="#" in this component - because it interferes with the library router. */ -a.force-link-style { - text-decoration: underline !important; -} From 4f4cb148b748aa5ca3b1f27d978565728f7df7d8 Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Tue, 24 Apr 2018 11:36:01 -0400 Subject: [PATCH 2/3] better fix for href containing hashes removing href messes with styles and also with bs4 (e.g. active highlighting of dropdowns was broken) --- .../scripts/components/RuleCollectionBuilder.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/galaxy/scripts/components/RuleCollectionBuilder.vue b/client/galaxy/scripts/components/RuleCollectionBuilder.vue index 589446199449..6153c7ee238e 100644 --- a/client/galaxy/scripts/components/RuleCollectionBuilder.vue +++ b/client/galaxy/scripts/components/RuleCollectionBuilder.vue @@ -204,7 +204,7 @@ v-bind:index="target" v-bind:key="target" class="dropdown-item" - href="#" + href="javascript:void(0)" :class="'rule-add-mapping-' + target.replace(/_/g, '-')" @click="addIdentifier(target)"> {{ mappingTargets()[target].label }} @@ -241,7 +241,7 @@ v-on:mouseout.native="map.columns.forEach((col) => unhighlightColumn(col))" :col-headers="colHeaders" />
- One or more column definitions must be specified. These are required to specify how to build collections and datasets from rows and columns of the table. Click here to manage column definitions. + One or more column definitions must be specified. These are required to specify how to build collections and datasets from rows and columns of the table. Click here to manage column definitions.
@@ -708,7 +708,7 @@ const IdentifierDisplay = { }; const RuleTargetComponent = { - template: `{{title}}`, + template: `{{title}}`, props: { ruleType: { type: String, @@ -787,7 +787,7 @@ const RuleModalMiddle = { } const RuleModalFooter = { - template: ` + template: `