@ozdao/prometheus-framework 0.2.73 → 0.2.74

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.2.73",
3
+ "version": "0.2.74",
4
4
  "description": "Web3 Framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",
@@ -21,10 +21,6 @@
21
21
  <Block
22
22
  title="Add tickets"
23
23
  placeholder="No parameters added yet"
24
- :actions="[{
25
- label: '+',
26
- function: () => newTickets.push({name: '', value: '', target: event._id, type: 'event'})
27
- }]"
28
24
  class="cols-1 mn-b-thin gap-thin"
29
25
  >
30
26
  <div
@@ -46,11 +42,19 @@
46
42
  v-model:field="item.quantity"
47
43
  placeholder="Quantity"
48
44
  type="number"
49
- class="w-10 bg-white radius-small pd-medium"
45
+ class="w-25 bg-white radius-small pd-medium"
50
46
  />
51
- <div v-if="index > 0" @click="() => newTickets.splice(index, 1)" class="radius-small h-100 i-big flex-center flex aspect-1x1 bg-red">
47
+
48
+ <div v-if="index < 1" @click="() => newTickets.push({name: '', value: '', target: event._id, type: 'event', quantity: 1})" class="radius-small h-100 i-big flex-center flex aspect-1x1 bg-green">
49
+ <IconAdd
50
+ class="i-medium"
51
+ :fill="'rgb(var(--white)'"
52
+ />
53
+ </div>
54
+ <div v-else @click="() => newTickets.splice(index, 1)" class="radius-small h-100 i-big flex-center flex aspect-1x1 bg-red">
52
55
  <IconDelete
53
56
  class="i-medium"
57
+ :fill="'rgb(var(--white)'"
54
58
  />
55
59
  </div>
56
60
  </div>
@@ -138,6 +142,7 @@ import Button from '@pf/src/components/Button/Button.vue';
138
142
  import ButtonCheck from '@pf/src/modules/events/components/elements/ButtonCheck.vue'
139
143
 
140
144
  import IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue';
145
+ import IconAdd from '@pf/src/modules/icons/navigation/IconAdd.vue';
141
146
 
142
147
  import { ref, onMounted } from 'vue';
143
148
  import { useRoute, useRouter } from 'vue-router';