Skip to content

Commit

Permalink
Allow details feature with a developmentMode config flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
jameseaster committed Oct 8, 2024
1 parent 546ae33 commit 361c1e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/CredentialDetailsViews.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
* Copyright (c) 2015-2024 Digital Bazaar, Inc. All rights reserved.
*/
import {onBeforeMount, onMounted, reactive, ref} from 'vue';
import {config} from '@bedrock/web';
import CredentialDetailsTree from './CredentialDetailsTree.vue';
import {date} from 'quasar';
import Mustache from 'mustache';
Expand Down Expand Up @@ -172,7 +173,7 @@ export default {
const showDisplays = ref(false);
const showHighlights = ref(false);
const credentialImages = reactive([]);
const showDetails = ref(process.env.NODE_ENV === 'development');
const showDetails = ref(config?.vueWallet?.developmentMode);
// Select initial tab
onMounted(() => {
Expand Down
4 changes: 3 additions & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const cfg = {
}
},
// CHAPI is on by default
disableChapi: false
disableChapi: false,
// Development mode is false by default
developmentMode: true
};

// expose as `vueWallet` on shared web app config
Expand Down

0 comments on commit 361c1e7

Please sign in to comment.