Skip to content

Commit e3fcdd8

Browse files
Merge pull request #761 from lcnetdev/green-post-button-on-load-issue
button shouldnt be green
2 parents f8d4438 + 55cb638 commit e3fcdd8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/stores/profile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3979,6 +3979,10 @@ export const useProfileStore = defineStore('profile', {
39793979
* @return {void} -
39803980
*/
39813981
loadRecordFromBackend: async function(eid){
3982+
// loading a fresh record into the editor, clear the "posted" UI flag so the
3983+
// post button doesn't stay green from a previously posted record
3984+
this.activeProfilePosted = false
3985+
this.activeProfilePostedTimestamp = false
39823986
this.activeProfile = await utilsProfile.loadRecordFromBackend(eid)
39833987
},
39843988

0 commit comments

Comments
 (0)