Browse Source

fix optional message at top to not overflow

master
Trent Larson 2 days ago
parent
commit
a23416ead1
  1. 8
      BUILDING.md
  2. 4
      src/components/TopMessage.vue

8
BUILDING.md

@ -344,14 +344,6 @@ Prerequisites: macOS with Xcode installed
npm run build:capacitor npm run build:capacitor
``` ```
2. In case dependencies change:
```bash
cd ios/App
pod install
cd -
```
3. Update iOS project with latest build: 3. Update iOS project with latest build:
```bash ```bash

4
src/components/TopMessage.vue

@ -38,14 +38,14 @@ export default class TopMessage extends Vue {
settings.apiServer !== AppString.PROD_ENDORSER_API_SERVER settings.apiServer !== AppString.PROD_ENDORSER_API_SERVER
) { ) {
const didPrefix = settings.activeDid?.slice(11, 15); const didPrefix = settings.activeDid?.slice(11, 15);
this.message = "You're linked to a non-prod server, user " + didPrefix; this.message = "You're not using prod, user " + didPrefix;
} else if ( } else if (
settings.warnIfProdServer && settings.warnIfProdServer &&
settings.apiServer === AppString.PROD_ENDORSER_API_SERVER settings.apiServer === AppString.PROD_ENDORSER_API_SERVER
) { ) {
const didPrefix = settings.activeDid?.slice(11, 15); const didPrefix = settings.activeDid?.slice(11, 15);
this.message = this.message =
"You're linked to the production server, user " + didPrefix; "You are using prod, user " + didPrefix;
} }
} catch (err: unknown) { } catch (err: unknown) {
this.$notify( this.$notify(

Loading…
Cancel
Save