Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 84a5ea7

Browse files
authored
Merge pull request #340 from kodadot/283-warning
283 issue warning for buy
2 parents 1d43c81 + b19e802 commit 84a5ea7

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

dashboard/src/components/rmrk/Gallery/AvailableActions.vue

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,11 @@
77
{{ action }}
88
</b-button>
99
</div>
10-
<!-- <b-field v-if="accountId" label="Action">
11-
<b-select
12-
placeholder="Select available action"
13-
:value="selectedAction"
14-
@input="handleSelect"
15-
>
16-
<option value="">None</option>
17-
<option v-for="action in actions" :value="action" :key="action">
18-
{{ action }}
19-
</option>
20-
</b-select>
21-
</b-field> -->
10+
<b-message v-if="buyAvailable" title="RMRK::ALERT" type="is-warning" has-icon aria-close-label="Close message">
11+
We would like to warn buyers they are solely operating on their own will and carry any involving risks as we are experimental implementation of RMRK-spec.
12+
You should double-check on "official UI" (if there are any available already) whenever the current owner showing in KodaDot UI is identical through other UI available from RMRK-team.
13+
If there are any doubts, reach us to proceed. We are working to migrate the current KodaDot UI to a more secure and robust solution.
14+
</b-message>
2215
<component class="mb-4" v-if="showMeta" :is="showMeta" @input="updateMeta" />
2316
<b-button
2417
v-if="showSubmit"
@@ -86,6 +79,10 @@ export default class AvailableActions extends Mixins(RmrkVersionMixin) {
8679
: [];
8780
}
8881
82+
get buyAvailable() {
83+
return this.actions.some(e => e === 'BUY')
84+
}
85+
8986
get showSubmit() {
9087
return this.selectedAction && (!this.showMeta || this.metaValid);
9188
}

dashboard/src/icons.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
faQuestion, faPrint,
2626
faMagic, faEye, faCommentAlt,
2727
faGhost, faCode, faLeaf,
28-
faFlask, faCameraRetro, faTag, faShareAlt
28+
faFlask, faCameraRetro, faTag, faShareAlt, faExclamationTriangle
2929
} from '@fortawesome/free-solid-svg-icons';
3030

3131
// throws error, idk why
@@ -75,7 +75,7 @@ library.add(
7575
faCommentDots, faGhost, faCode,
7676
faWpexplorer,
7777
faRedditAlien, faCameraRetro,
78-
faTag, faShareAlt
78+
faTag, faShareAlt, faExclamationTriangle
7979
);
8080

8181
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';

0 commit comments

Comments
 (0)