Skip to content

Commit 4904eff

Browse files
committed
WIP
1 parent 382d971 commit 4904eff

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

app/Http/Middleware/CheckMigrationStatus.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ public function handle( Request $request, Closure $next )
2424
}
2525

2626
if ( Helper::installed() ) {
27+
/**
28+
* @var ModulesService $module
29+
*/
2730
$module = app()->make( ModulesService::class );
28-
$modules = collect( $module->getEnabled() );
31+
$modules = collect( $module->getEnabledAndAutoloadedModules() );
2932
$total = $modules->filter( fn( $module ) => count( $module[ 'migrations' ] ) > 0 );
3033

3134
if ( $total->count() > 0 ) {

resources/ts/components/ns-table-row.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@
5252
<div class="rounded-md shadow-xs">
5353
<div class="py-1" role="menu" aria-orientation="vertical" aria-labelledby="options-menu">
5454
<template :key="index" v-for="(action,index) of row.$actions">
55-
<a :href="action.url" v-if="action.type === 'GOTO'" class="ns-action-button block px-4 py-2 text-sm leading-5" role="menuitem" v-html="sanitizeHTML( action.label )"></a>
55+
<a
56+
:href="action.url"
57+
:target="(action.type === 'TAB' ? '_self' : '_blank')"
58+
v-if="[ 'GOTO', 'TAB' ].includes( action.type )" class="ns-action-button block px-4 py-2 text-sm leading-5" role="menuitem" v-html="sanitizeHTML( action.label )"></a>
5659
<a href="javascript:void(0)" @click="triggerAsync( action )" v-if="[ 'GET', 'DELETE', 'POPUP' ].includes( action.type )" class="ns-action-button block px-4 py-2 text-sm leading-5" role="menuitem" v-html="sanitizeHTML( action.label )"></a>
5760
</template>
5861
</div>

0 commit comments

Comments
 (0)