This commit is contained in:
syuilo 2017-03-27 04:39:46 +09:00
parent de6e109a91
commit 692bd515e3
6 changed files with 5 additions and 25 deletions

View file

@ -5,9 +5,7 @@
</style> </style>
<script> <script>
this.on('mount', () => { this.on('mount', () => {
// https://github.com/riot/riot/issues/2103 let value = this.opts.value;
//value = this.opts.value
let value = this.opts.riotValue;
const max = this.opts.max; const max = this.opts.max;
if (max != null && value > max) value = max; if (max != null && value > max) value = max;

View file

@ -282,10 +282,7 @@
this.stream.on('drive_folder_created', this.onStreamDriveFolderCreated); this.stream.on('drive_folder_created', this.onStreamDriveFolderCreated);
this.stream.on('drive_folder_updated', this.onStreamDriveFolderUpdated); this.stream.on('drive_folder_updated', this.onStreamDriveFolderUpdated);
// Riotのバグでnullを渡しても""になる if (this.opts.folder) {
// https://github.com/riot/riot/issues/2080
//if (this.opts.folder)
if (this.opts.folder && this.opts.folder != '') {
this.move(this.opts.folder); this.move(this.opts.folder);
} else { } else {
this.fetch(); this.fetch();

View file

@ -8,10 +8,7 @@
<script> <script>
this.mixin('api'); this.mixin('api');
// Riotのバグでnullを渡しても""になる this.folder = this.opts.folder ? this.opts.folder : null;
// https://github.com/riot/riot/issues/2080
//this.folder = this.opts.folder
this.folder = this.opts.folder && this.opts.folder != '' ? this.opts.folder : null;
this.browser = this.parent; this.browser = this.parent;
this.hover = false; this.hover = false;

View file

@ -61,8 +61,6 @@
this.mixin('i'); this.mixin('i');
this.mode = this.opts.mode || 'timeline'; this.mode = this.opts.mode || 'timeline';
// https://github.com/riot/riot/issues/2080
if (this.mode == '') this.mode = 'timeline';
const _home = { const _home = {
left: [ left: [

View file

@ -320,14 +320,8 @@
this.inReplyToPost = this.opts.reply; this.inReplyToPost = this.opts.reply;
// https://github.com/riot/riot/issues/2080
if (this.inReplyToPost == '') this.inReplyToPost = null;
this.repost = this.opts.repost; this.repost = this.opts.repost;
// https://github.com/riot/riot/issues/2080
if (this.repost == '') this.repost = null;
this.placeholder = this.repost this.placeholder = this.repost
? '%i18n:desktop.tags.mk-post-form.quote-placeholder%' ? '%i18n:desktop.tags.mk-post-form.quote-placeholder%'
: this.inReplyToPost : this.inReplyToPost

View file

@ -198,13 +198,9 @@
this.stream.on('drive_folder_created', this.onStreamDriveFolderCreated); this.stream.on('drive_folder_created', this.onStreamDriveFolderCreated);
this.stream.on('drive_folder_updated', this.onStreamDriveFolderUpdated); this.stream.on('drive_folder_updated', this.onStreamDriveFolderUpdated);
// Riotのバグでnullを渡しても""になる if (this.opts.folder) {
// https://github.com/riot/riot/issues/2080
//if (this.opts.folder)
//if (this.opts.file)
if (this.opts.folder && this.opts.folder != '') {
this.cd(this.opts.folder, true); this.cd(this.opts.folder, true);
} else if (this.opts.file && this.opts.file != '') { } else if (this.opts.file) {
this.cf(this.opts.file, true); this.cf(this.opts.file, true);
} else { } else {
this.fetch(); this.fetch();