Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable qr code when set disableExport to true #465

Merged
merged 3 commits into from
Apr 29, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/Popup/EntryComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export default Vue.extend({
},
shouldShowQrIcon(entry: OTPEntry) {
return (
!this.$store.state.menu.showQrDisabled &&
entry.secret !== null &&
entry.type !== OTPType.battle &&
entry.type !== OTPType.steam
Expand Down
1 change: 1 addition & 0 deletions src/store/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class Menu implements Module {
exportDisabled: await ManagedStorage.get("disableExport"),
enforcePassword: await ManagedStorage.get("enforcePassword"),
enforceAutolock: await ManagedStorage.get("enforceAutolock"),
showQrDisabled: await ManagedStorage.get("disableExport"),
Sneezry marked this conversation as resolved.
Show resolved Hide resolved
storageArea: await ManagedStorage.get("storageArea"),
feedbackURL: await ManagedStorage.get("feedbackURL")
},
Expand Down