Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Commit 7dbe443

Browse files
eggoynesbrandold
andauthored
Added changes so if no filesystems are found then a message saying th… (#47)
* Added changes so if no filesystems are found then a message saying the user should make a filesystem in the aws console * Made changes Brandon recommended for No Amazon EFS file systems found dialog. Co-authored-by: brandold <[email protected]>
1 parent 688b226 commit 7dbe443

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

source/web/src/components/filesystems.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
</div>
2222
</template>
2323
</b-table>
24+
<div v-if="noFileSystemsFound">
25+
<p>No Amazon EFS file systems found.
26+
Please create an EFS filesystem in the
27+
<a href="https://console.aws.amazon.com/efs/home/file-systems">AWS console</a>
28+
</p>
29+
</div>
2430
</div>
2531
</template>
2632

@@ -31,7 +37,8 @@ export default {
3137
name: 'filesystems',
3238
data() {
3339
return {
34-
filesystems: []
40+
filesystems: [],
41+
noFileSystemsFound: false
3542
}
3643
},
3744
mounted: function () {
@@ -41,7 +48,11 @@ export default {
4148
async listFilesystems() {
4249
try {
4350
let response = await API.get('fileManagerApi', '/api/filesystems/')
44-
this.filesystems = response
51+
if(response.length == 0){
52+
this.noFileSystemsFound = true
53+
}else{
54+
this.filesystems = response
55+
}
4556
}
4657
catch (error) {
4758
alert('Unable to list filesystems, check api logs')

0 commit comments

Comments
 (0)