stubbed in signup dialog
This commit is contained in:
parent
d560fc05cf
commit
f7f8944e00
7 changed files with 85 additions and 6 deletions
|
@ -3,7 +3,7 @@ const html = require('choo/html');
|
|||
const raw = require('choo/html/raw');
|
||||
const selectbox = require('../selectbox');
|
||||
const timeLimitText = require('../timeLimitText');
|
||||
const okDialog = require('../okDialog');
|
||||
const signupDialog = require('../signupDialog');
|
||||
|
||||
module.exports = function(state, emit) {
|
||||
const el = html`<div> ${raw(
|
||||
|
@ -31,7 +31,7 @@ module.exports = function(state, emit) {
|
|||
value => {
|
||||
const max = state.user.maxDownloads;
|
||||
if (value > max) {
|
||||
state.modal = okDialog('todo: this setting requires an account');
|
||||
state.modal = signupDialog();
|
||||
value = max;
|
||||
}
|
||||
state.downloadCount = value;
|
||||
|
@ -54,7 +54,7 @@ module.exports = function(state, emit) {
|
|||
value => {
|
||||
const max = state.user.maxExpireSeconds;
|
||||
if (value > max) {
|
||||
state.modal = okDialog('todo: this setting requires an account');
|
||||
state.modal = signupDialog();
|
||||
value = max;
|
||||
}
|
||||
state.timeLimit = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue