Skip to content

Commit

Permalink
Switch to placeholder from value in token modal
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesPeck committed Mar 12, 2024
1 parent f7c8da3 commit bc476a0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@
if (!sessionStorage.getItem('token')) {
const modal: ModalSettings = {
type: 'prompt',
// Data
title: 'Enter Long Term Token',
body: 'Provide your long term token below.',
// Populates the input value and attributes
value: 'Token here...',
valueAttr: { type: 'text', required: true },
// Returns the updated response value
valueAttr: { type: 'text', required: true, placeholder: 'Enter token here...' },
response: (r: string) => {
sessionStorage.setItem('token', r);
},
Expand Down

0 comments on commit bc476a0

Please sign in to comment.