stubbed in signup dialog

This commit is contained in:
Danny Coates 2018-09-27 15:46:46 -07:00
parent d560fc05cf
commit f7f8944e00
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
7 changed files with 85 additions and 6 deletions

View file

@ -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;