Compare commits

...

3 commits

Author SHA1 Message Date
c1762f27ae remove accesskey attribs 2022-12-29 00:14:35 +01:00
08f75a01f1 v-else on play button 2022-12-29 00:12:23 +01:00
9302a9faaa replace filter with some 2022-12-29 00:08:19 +01:00
2 changed files with 5 additions and 5 deletions

View file

@ -130,9 +130,9 @@ const previewable = (file: foundkey.entities.DriveFile): boolean => {
};
const isModule = (file: foundkey.entities.DriveFile): boolean => {
return FILE_EXT_TRACKER_MODULES.filter((ext) => {
return FILE_EXT_TRACKER_MODULES.some((ext) => {
return file.name.toLowerCase().endsWith("." + ext);
}).length > 0;
});
};
</script>

View file

@ -11,11 +11,11 @@
<canvas class="pattern-canvas" ref="displayCanvas"></canvas>
</div>
<div class="controls">
<button class="play" accesskey="P" @click="playPause()">
<i class="fas fa-play" v-if="!playing"></i>
<button class="play" @click="playPause()">
<i class="fas fa-pause" v-if="playing"></i>
<i class="fas fa-play" v-else></i>
</button>
<button class="stop" accesskey="X" @click="stop()">
<button class="stop" @click="stop()">
<i class="fas fa-stop"></i>
</button>
<progress min="0" max="100" value="0" ref="progress"></progress>