Skip to content

Commit

Permalink
Merge pull request #924 from /issues/922
Browse files Browse the repository at this point in the history
checkbox added
  • Loading branch information
Pratap2018 authored Feb 14, 2022
2 parents 1b6e28f + 8bcad1b commit 5de84cf
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
8 changes: 5 additions & 3 deletions public/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";

self.addEventListener("install", function () {
self.addEventListener("install", async function () {
console.log("Service worker installing...");
// Add a call to skipWaiting here
});

self.addEventListener("activate", function () {
self.addEventListener("activate", async function () {
console.log("Service Worker actives");
});

self.addEventListener("notificationclick", function (e) {
console.log(e.notification.data.url);
// console.log(e.notification.data.url);

switch (e.action) {
case "open_url":
// eslint-disable-next-line no-undef
clients.openWindow(e.notification.data.url);
break;

default:
// eslint-disable-next-line no-undef
clients.openWindow(e.notification.data.url);

break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,22 @@
/>
</div>
</div>
<div class="row g-3 align-items-center w-100 mt-4">
<div class="col-lg-3 col-md-3 text-left">
<label for="endDate" class="col-form-label" title="Check to notify all platform users about this event">Enable Notifications: </label>
</div>
<div class="col-lg-9 col-md-9 px-0">
<!-- <input disabled v-model="project.toDate" type="text" id="fromDate" class="form-control w-100" > -->
<!-- <Datepicker
class="datepicker"
v-model="project.toDate"
name="toDate"
format="YYYY-MM-DD h:i:s"
/> -->

<input type="checkbox" v-model="project.isNotificaionEnabled" title="Check to notify all platform users about this event" id="">
</div>
</div>

</div>
</template>
Expand Down
4 changes: 4 additions & 0 deletions src/views/admin/Events.vue
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ export default {
logoUrl: "",
fromDate: "",
toDate: "",
isNotificaionEnabled:false,
ownerDid: "did:hs:QWERTlkasd090123SWEE12322",
investorsCount: 0,
social: {},
Expand Down Expand Up @@ -783,6 +784,7 @@ export default {
},
clear() {
this.isProjectEditing = false;
this.project = {
_id: "",
Expand All @@ -793,6 +795,7 @@ export default {
onwerDid: "",
twitterHandle: "",
telegramHandle: "",
isNotificaionEnabled:false
};
},
Expand All @@ -808,6 +811,7 @@ export default {
social: {},
projectStatus: true,
actions: [],
isNotificaionEnabled:false,
refereePoint: 10,
referralPoint: 5
},
Expand Down

0 comments on commit 5de84cf

Please sign in to comment.