Skip to content

Commit

Permalink
feat: add tag type artifact_state for science scan object (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
5annaha authored Jun 16, 2024
1 parent bee483b commit 7f2b43d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/ScienceInspectObject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default {
diagnosis: null,
title: '',
tagRegexp: '',
tagRegexpArtifactState: '',
invalidTagTypeMessage: '',
tagNotFoundMessage: '',
hasInput: !hasNfc(),
Expand All @@ -64,6 +65,8 @@ export default {
this.res = res;
this.analyze();
}
} else if (message.match(this.tagRegexpArtifactState)){
this.resultText = 'Artifact internal quantum configuration is: ' + message.split(':')[1];
} else {
this.resultText = this.invalidTagTypeMessage;
}
Expand Down Expand Up @@ -113,6 +116,7 @@ export default {
this.title = 'SCAN OBJECT';
this.resultText = 'Ready to scan an object';
this.tagRegexp = /^science:..*/;
this.tagRegexpArtifactState = /^artifact_state:..*/;
this.tagNotFoundMessage = 'This object is unknown';
this.invalidTagTypeMessage = 'This is not recognized as an object\n\nReady to scan an object';
this.debouncedGetRecords = debounce(this.getRecords, 700);
Expand Down

0 comments on commit 7f2b43d

Please sign in to comment.