Commit e70531c5 authored by dindigala's avatar dindigala
Browse files

refactor: rename according to review comments

parent 72620bd6
Pipeline #210909 passed with stages
in 4 minutes and 56 seconds
......@@ -35,7 +35,7 @@
<Notification
:message="$t(messages.none)"
title-key="annotationInfoTitle"
variant-type="info"
type="info"
/>
</div>
......
......@@ -5,8 +5,8 @@
>
<q-card-section class="text-center">
<q-icon
:color="variantColor"
:name="variantIcon"
:color="color"
:name="icon"
class="q-pr-sm"
size="sm"
/>
......@@ -38,7 +38,7 @@ export default {
type: String,
default: () => '',
},
variantType: {
type: {
type: String,
default: () => '',
},
......@@ -49,8 +49,8 @@ export default {
};
},
computed: {
variantColor() {
switch (this.variantType) {
color() {
switch (this.type) {
case 'info':
return 'red-9';
case 'warning':
......@@ -59,8 +59,8 @@ export default {
return 'red-9';
}
},
variantIcon() {
switch (this.variantType) {
icon() {
switch (this.type) {
case 'info':
return fasInfoCircle;
case 'warning':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment