Skip to content

Commit

Permalink
Update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
5baddi committed Jan 25, 2021
1 parent f84b492 commit c28571b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 18 deletions.
63 changes: 45 additions & 18 deletions public/3.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
//
//
//
//
//
//



Expand Down Expand Up @@ -2613,26 +2616,50 @@ var render = function() {
]),
_vm._v(" "),
!_vm.tracker
? _c("div", { staticClass: "hero__actions" }, [
_c(
"button",
{
staticClass: "btn btn-success",
attrs: {
disabled:
!_vm.campaigns ||
typeof _vm.campaigns.length === "undefined" ||
_vm.campaigns.length === 0
? _c(
"div",
{ staticClass: "hero__actions" },
[
_c(
"button",
{
staticClass: "btn btn-success",
attrs: {
disabled:
!_vm.campaigns ||
typeof _vm.campaigns.length === "undefined" ||
_vm.campaigns.length === 0
},
on: {
click: function($event) {
_vm.showAddTrackerModal = !_vm.showAddTrackerModal
}
}
},
on: {
click: function($event) {
_vm.showAddTrackerModal = !_vm.showAddTrackerModal
[_vm._v("Add new tracker")]
),
_vm._v(" "),
_c(
"router-link",
{
staticClass: "btn btn-success",
staticStyle: { margin: "6px 0" },
attrs: {
disabled:
!_vm.campaigns ||
typeof _vm.campaigns.length === "undefined" ||
_vm.campaigns.length === 0,
to: { name: "new_story" }
}
}
},
[_vm._v("Add new tracker")]
)
])
},
[
_c("i", { staticClass: "fas fa-plus" }),
_vm._v(" Add new story \r\n ")
]
)
],
1
)
: _vm._e()
]),
_vm._v(" "),
Expand Down
3 changes: 3 additions & 0 deletions resources/js/pages/TrackersPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
</div>
<div class="hero__actions" v-if="!tracker">
<button class="btn btn-success" :disabled="!campaigns || typeof campaigns.length === 'undefined' || campaigns.length === 0" @click="showAddTrackerModal = !showAddTrackerModal">Add new tracker</button>
<router-link style="margin: 6px 0;" class="btn btn-success" :disabled="!campaigns || typeof campaigns.length === 'undefined' || campaigns.length === 0" :to="{name: 'new_story'}">
<i class="fas fa-plus"></i>&nbsp;Add new story
</router-link>
</div>
</div>
<div class="p-1" v-if="!tracker">
Expand Down

0 comments on commit c28571b

Please sign in to comment.