Skip to content

Commit 6880d30

Browse files
committed
Fix compatibility issue with Kirby 4.x.
1 parent 35d0ea7 commit 6880d30

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
Kirby::plugin(
3939
name: 'scottboms/isbn-field',
4040
info: [
41-
'homepage' => 'https://github.com/scottboms/kirby-isbn-field'
41+
'homepage' => 'https://github.com/scottboms/kirby-isbn-field',
42+
'license' => 'MIT'
4243
],
43-
version: '1.1.0',
44-
license: 'MIT',
44+
version: '1.1.1',
4545
extends: [
4646
'fields' => [
4747
'isbn' => require __DIR__ . '/lib/fields.php'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "isbn-field",
33
"description": "ISBN field type with a barcode preview to Kirby",
44
"author": "Scott Boms <[email protected]>",
5-
"version": "1.1.0",
5+
"version": "1.1.1",
66
"type": "kirby-plugin",
77
"license": "MIT",
88
"scripts": {

src/components/IsbnField.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ export default {
120120
const newValue = formData[this.name];
121121
122122
if (!this.validateIsbn(newValue)) {
123-
this.$panel.notification.error({
123+
this.$panel.notification.info({
124124
message: this.$t('isbn.error.invalid'),
125+
icon: 'alert',
126+
theme: 'negative',
125127
timeout: 5000
126128
});
127129
return; // don't proceed
@@ -140,12 +142,15 @@ export default {
140142
141143
this.$panel.notification.success({
142144
message: this.$t('isbn.success.saved'),
145+
icon: 'check',
143146
timeout: 4000
144147
});
145148
})
146149
.catch(() => {
147-
this.$panel.notification.error({
150+
this.$panel.notification.info({
148151
message: this.$t('isbn.error.unknown'),
152+
icon: 'alert',
153+
theme: 'negative',
149154
timeout: 4000
150155
});
151156
});

0 commit comments

Comments
 (0)