Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
remove stats tracked - fixes #29
Browse files Browse the repository at this point in the history
  • Loading branch information
mradkov committed Jul 12, 2019
1 parent 6363b83 commit 3c3ebee
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 45 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "waellet",
"version": "0.0.7",
"version": "0.0.8",
"description": "waellet - aeternity browser extension",
"author": "Milen Radkov <milenradkov@me.com>",
"license": "MIT",
Expand Down
23 changes: 0 additions & 23 deletions src/popup/router/pages/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
<div class="logo-center">
<img :src="logo" alt="Waellet logo">
</div>
<ae-modal-light v-if="modalAskVisible" @close="modalAskVisible = false" title="Do you want to track your stats?">
<small>Please, note that you can change this at any time in the Waellet settings</small>
<ae-button size="small" type="exciting" plain uppercase @click="trackStats" slot="buttons" >Yes</ae-button>
<ae-button size="small" type="dramatic" plain uppercase @click="doNotTrackStats" slot="buttons" >No</ae-button>
</ae-modal-light>
</div>
</main>
<Loader size="small" :loading="loading" v-bind="{'content':language.strings.securingAccount}"></Loader>
Expand Down Expand Up @@ -196,14 +191,6 @@ export default {
});
},
trackStats() {
this.modalAskVisible = false;
browser.storage.sync.set({allowTracking: true}).then(() => {});
},
doNotTrackStats(){
this.modalAskVisible = false;
browser.storage.sync.set({allowTracking: false}).then(() => {});
},
generateAddress: async function generateAddress({ dispatch }) {
this.$router.push({name:'password',params:{
confirmPassword:true,
Expand Down Expand Up @@ -292,11 +279,6 @@ export default {
this.errorMsg = "Plese upload keystore.json file! ";
}
}
browser.storage.sync.get('allowTracking').then(result => {
if(result.allowTracking == true) {
fetchData('https://stats.waellet.com/user/imported', 'post', this.imported);
}
});
},
openImportModal() {
this.modalVisible = true;
Expand Down Expand Up @@ -362,11 +344,6 @@ export default {
}else {
sub = subaccounts.subaccounts;
}
browser.storage.sync.get('allowTracking').then(result => {
if(result.allowTracking == true) {
fetchData('https://stats.waellet.com/user/login', 'post', this.isLogged);
}
});
this.$store.dispatch('setSubAccounts',sub).then(() => {
this.$store.commit('SET_WALLET', wallet);
this.$store.commit('SWITCH_LOGGED_IN', true);
Expand Down
16 changes: 0 additions & 16 deletions src/popup/router/pages/SecuritySettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
<button class="backbutton toAccount" @click="navigateToSettings"><ae-icon name="back" /> {{language.buttons.backToSettings}}</button>
</div>
<h3 style='text-align:center;'>{{language.pages.settings.securitySettings.heading}}</h3>
<ae-panel>
<div class="maindiv_input-group-addon">
<h4>Waellet Statistic Track</h4><hr>
<small class="sett_info">Take part in the Waellet statistics</small>
<switchButton class="tracker-switchbtn" :onChange="onChange" :onoff="onoff"></switchButton>
</div>
</ae-panel>
<ae-panel>
<div class="maindiv_input-group-addon">
<h4>Privacy Data</h4><hr>
Expand Down Expand Up @@ -49,15 +42,6 @@ export default {
navigateToSettings() {
this.$router.push('/settings')
},
onChange(){
this.onoff = !this.onoff;
if (this.onoff == true) {
browser.storage.sync.set({allowTracking: true}).then(() => {});
}
if (this.onoff == false) {
browser.storage.sync.set({allowTracking: false}).then(() => {});
}
},
clearPrivacyData( ) {
//confirm window to be addeded here after merge with the others
browser.storage.sync.remove('connectedAepps')
Expand Down
5 changes: 0 additions & 5 deletions src/popup/router/pages/SeedPhrase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,6 @@ export default {
this.$store.commit('SET_WALLET', wallet);
this.$router.push('/account');
this.generated = true;
browser.storage.sync.get('allowTracking').then(result => {
if(result.allowTracking == true) {
fetchData('https://stats.waellet.com/user/created', 'post', this.generated);
}
});
});
});
});
Expand Down

0 comments on commit 3c3ebee

Please sign in to comment.