Skip to content

Instantly share code, notes, and snippets.

@mitrallex
Created February 4, 2018 19:32
Show Gist options
  • Save mitrallex/6f8479f94b4fd292eb3a006d56bacead to your computer and use it in GitHub Desktop.
Save mitrallex/6f8479f94b4fd292eb3a006d56bacead to your computer and use it in GitHub Desktop.
laravel-file-hosting
<div class="card-content">
<div class="content">
<p v-if="file !== editingFile" @dblclick="editFile(file)" :title="'Double click for editing filename'">
@{{ file.name + '.' + file.extension}}
</p>
<input class="input" v-if="file === editingFile" v-autofocus @keyup.enter="endEditing(file)" @blur="endEditing(file)" type="text" :placeholder="file.name" v-model="file.name">
<time datetime="2016-1-1">@{{ file.created_at }}</time>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment