From ba2ec307e5099bb1613cf7fdc1b4decb854e4aab Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 11 Sep 2024 14:15:59 +0000 Subject: [PATCH] Bug 38010: Add a nav link button component --- .../components/Admin/RecordSources/List.vue | 6 +- .../prog/js/vue/components/ButtonLink.vue | 65 +++++++++++++++++++ .../js/vue/components/ERM/AgreementsList.vue | 6 +- .../js/vue/components/ERM/AgreementsShow.vue | 6 +- .../ERM/EHoldingsLocalPackagesList.vue | 6 +- .../ERM/EHoldingsLocalPackagesShow.vue | 6 +- .../ERM/EHoldingsLocalTitlesList.vue | 10 +-- .../ERM/EHoldingsLocalTitlesShow.vue | 6 +- .../js/vue/components/ERM/LicensesList.vue | 6 +- .../js/vue/components/ERM/LicensesShow.vue | 6 +- .../ERM/UsageStatisticsDataProvidersShow.vue | 6 +- .../Preservation/SettingsProcessingsShow.vue | 6 +- .../components/Preservation/TrainsList.vue | 6 +- .../components/Preservation/TrainsShow.vue | 8 +-- .../prog/js/vue/components/ToolbarButton.vue | 27 -------- 15 files changed, 107 insertions(+), 69 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/js/vue/components/ButtonLink.vue delete mode 100644 koha-tmpl/intranet-tmpl/prog/js/vue/components/ToolbarButton.vue diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/List.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/List.vue index 60a7b3234da..7e04250e3b9 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/List.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/RecordSources/List.vue @@ -2,7 +2,7 @@
{{ $__("Loading") }}
- import Toolbar from "../../Toolbar.vue" -import ToolbarButton from "../../ToolbarButton.vue" +import ButtonLink from "../../ButtonLink.vue" import { inject } from "vue" import { APIClient } from "../../../fetch/api-client.js" import KohaTable from "../../KohaTable.vue" @@ -144,7 +144,7 @@ export default { components: { KohaTable, Toolbar, - ToolbarButton, + ButtonLink, }, } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ButtonLink.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ButtonLink.vue new file mode 100644 index 00000000000..c3992153887 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ButtonLink.vue @@ -0,0 +1,65 @@ + + + diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue index 0b3fc2aa822..6f59e11856b 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue @@ -2,7 +2,7 @@
{{ $__("Loading") }}
- import flatPickr from "vue-flatpickr-component" import Toolbar from "../Toolbar.vue" -import ToolbarButton from "../ToolbarButton.vue" +import ButtonLink from "../ButtonLink.vue" import { inject, ref, reactive } from "vue" import { APIClient } from "../../fetch/api-client.js" import { storeToRefs } from "pinia" @@ -353,7 +353,7 @@ export default { } }, }, - components: { flatPickr, Toolbar, ToolbarButton, KohaTable }, + components: { flatPickr, Toolbar, ButtonLink, KohaTable }, props: { embedded: { type: Boolean, diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue index 27eee68c05d..d5e564a81c6 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue @@ -2,7 +2,7 @@
{{ $__("Loading") }}
- diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue index 29f446bb49c..38804bad1fb 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue @@ -3,7 +3,7 @@
{{ $__("Loading") }}
- import Toolbar from "../Toolbar.vue" -import ToolbarButton from "../ToolbarButton.vue" +import ButtonLink from "../ButtonLink.vue" import { inject, ref, reactive } from "vue" import { storeToRefs } from "pinia" import { APIClient } from "../../fetch/api-client.js" @@ -245,7 +245,7 @@ export default { ] }, }, - components: { Toolbar, ToolbarButton, KohaTable }, + components: { Toolbar, ButtonLink, KohaTable }, name: "EHoldingsLocalPackagesList", } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesShow.vue index b864affc4ec..251fb23426d 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesShow.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesShow.vue @@ -2,7 +2,7 @@
{{ $__("Loading") }}
- {{ $__("Loading") }}
- - - import Toolbar from "../Toolbar.vue" -import ToolbarButton from "../ToolbarButton.vue" +import ButtonLink from "../ButtonLink.vue" import { inject, ref, reactive } from "vue" import { storeToRefs } from "pinia" import { APIClient } from "../../fetch/api-client.js" @@ -244,7 +244,7 @@ export default { ] }, }, - components: { Toolbar, ToolbarButton, KohaTable }, + components: { Toolbar, ButtonLink, KohaTable }, name: "EHoldingsLocalTitlesList", } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesShow.vue index fbe7ac27524..029350f980a 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesShow.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesShow.vue @@ -2,7 +2,7 @@
{{ $__("Loading") }}
- {{ $__("Loading") }}
- import Toolbar from "../Toolbar.vue" -import ToolbarButton from "../ToolbarButton.vue" +import ButtonLink from "../ButtonLink.vue" import { inject, ref } from "vue" import { storeToRefs } from "pinia" import { APIClient } from "../../fetch/api-client.js" @@ -227,7 +227,7 @@ export default { av_license_types: Array, av_license_statuses: Array, }, - components: { Toolbar, ToolbarButton, KohaTable }, + components: { Toolbar, ButtonLink, KohaTable }, name: "LicensesList", } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesShow.vue index 400267c08f7..a542d1e4fde 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesShow.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesShow.vue @@ -2,7 +2,7 @@
{{ $__("Loading") }}
- diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersShow.vue index 1643dbc91ad..49003c1a578 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersShow.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersShow.vue @@ -2,7 +2,7 @@
{{ $__("Loading") }}
- diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/SettingsProcessingsShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/SettingsProcessingsShow.vue index 82c35eeaf2b..95eeac8155f 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/SettingsProcessingsShow.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/SettingsProcessingsShow.vue @@ -2,7 +2,7 @@
{{ $__("Loading") }}
- diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsList.vue index 29f5b52e560..bfb50f96990 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsList.vue @@ -2,7 +2,7 @@
{{ $__("Loading") }}
- import flatPickr from "vue-flatpickr-component" import Toolbar from "../Toolbar.vue" -import ToolbarButton from "../ToolbarButton.vue" +import ButtonLink from "../ButtonLink.vue" import { inject, ref, reactive } from "vue" import { APIClient } from "../../fetch/api-client" import { build_url } from "../../composables/datatables" @@ -273,7 +273,7 @@ export default { ] }, }, - components: { flatPickr, Toolbar, ToolbarButton, KohaTable }, + components: { flatPickr, Toolbar, ButtonLink, KohaTable }, name: "trainsList", emits: ["select-train", "close"], } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue index 9b3496b09d5..11245a81b54 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsShow.vue @@ -73,7 +73,7 @@
{{ $__("Loading") }}
- {{ $__("Add items") }} - diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ToolbarButton.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ToolbarButton.vue deleted file mode 100644 index 4cfada715cc..00000000000 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ToolbarButton.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - -- 2.39.3 (Apple Git-146)