Add spinner

This commit is contained in:
Björn Fromme
2018-10-03 16:04:32 +02:00
parent 5c9363357a
commit 5c2e7619d0
2 changed files with 8 additions and 1 deletions
@@ -63,7 +63,9 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div v-show="loading" class="loader"><p>Loading...</p></div> <div v-show="loading" class="loader">
Loading... <img :src="loaderUri" alt="Loading" title="Loading">
</div>
<div v-show="message">{{ message }}</div> <div v-show="message">{{ message }}</div>
</div> </div>
</div> </div>
@@ -116,6 +118,10 @@
argumentPrefix: { argumentPrefix: {
type: String, type: String,
required: true required: true
},
loaderUri: {
type: String,
required: true
} }
}, },
computed: { computed: {
@@ -140,6 +140,7 @@
:contingent-endpoint-uri="uris.contingents" :contingent-endpoint-uri="uris.contingents"
:rooms-endpoint-uri="uris.rooms" :rooms-endpoint-uri="uris.rooms"
:argument-prefix="argumentPrefix" :argument-prefix="argumentPrefix"
loader-uri="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/ajax-loader-white.gif')}"
></date-select> ></date-select>
</f:then> </f:then>
<f:else> <f:else>