Bug 38854: Remove 'class' property from ToolbarButton

We never use another value than the default one.
We can simply remove this property.

Test plan:
Rebuild the dist files using `yarn js:build` and confirm that the
buttons in the toolbar of the ERM and Preservation modules still appears
and are styled like before.

Signed-off-by: William Lavoie <william.lavoie@inLibro.com>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit a575d38770)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-01-09 14:30:09 +01:00 committed by Paul Derscheid
parent d1e1052f67
commit 88da97fb0e
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
8 changed files with 1 additions and 13 deletions

View File

@ -7,7 +7,6 @@
name: 'AgreementsFormAddEdit',
params: { agreement_id: agreement.agreement_id },
}"
class="btn btn-default"
icon="pencil"
:title="$__('Edit')"
/>

View File

@ -7,7 +7,6 @@
name: 'EHoldingsLocalPackagesFormAddEdit',
params: { package_id: erm_package.package_id },
}"
class="btn btn-default"
icon="pencil"
:title="$__('Edit')"
/>

View File

@ -7,7 +7,6 @@
name: 'EHoldingsLocalTitlesFormAddEdit',
params: { title_id: title.title_id },
}"
class="btn btn-default"
icon="pencil"
:title="$__('Edit')"
/>

View File

@ -7,7 +7,6 @@
name: 'LicensesFormAddEdit',
params: { license_id: license.license_id },
}"
class="btn btn-default"
icon="pencil"
:title="$__('Edit')"
/>

View File

@ -10,7 +10,6 @@
usage_data_provider.erm_usage_data_provider_id,
},
}"
class="btn btn-default"
icon="pencil"
:title="$__('Edit')"
/>

View File

@ -7,7 +7,6 @@
name: 'SettingsProcessingsFormEdit',
params: { processing_id: processing.processing_id },
}"
class="btn btn-default"
icon="pencil"
:title="$__('Edit')"
/>

View File

@ -79,7 +79,6 @@
name: 'TrainsFormAddItem',
params: { train_id: train.train_id },
}"
class="btn btn-default"
icon="plus"
:title="$__('Add items')"
/>
@ -96,7 +95,6 @@
name: 'TrainsFormEdit',
params: { train_id: train.train_id },
}"
class="btn btn-default"
icon="pencil"
:title="$__('Edit')"
/>

View File

@ -1,5 +1,5 @@
<template>
<router-link :to="to" :class="class"
<router-link :to="to" class="btn btn-default"
><font-awesome-icon v-if="icon" :icon="icon" /> {{ title }}</router-link
>
</template>
@ -10,10 +10,6 @@ export default {
to: {
type: [String, Object],
},
class: {
type: String,
default: "btn btn-default",
},
icon: {
type: String,
required: false,