Skip to content

Commit

Permalink
change dao folder (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangershony authored Mar 24, 2022
1 parent e7569b7 commit 5ec5473
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
3 changes: 0 additions & 3 deletions src/Blockcore.Explorer/Blockcore.Explorer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
<None Remove="$(SpaRoot)**" />
<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
</ItemGroup>
<ItemGroup>
<Folder Include="ClientApp\src\app\explorer\DaoContract\Proposal" />
</ItemGroup>
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
<!-- Ensure Node.js is installed -->
<Exec Command="node --version" ContinueOnError="true">
Expand Down
6 changes: 3 additions & 3 deletions src/Blockcore.Explorer/ClientApp/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { ContractCodeComponent } from './explorer/contract-code/contract-code.co
import { MempoolComponent } from './explorer/mempool/mempool.component';
import { SearchGlobalComponent } from './search-global/search-global.component';
import { OrphansComponent } from './explorer/orphans/orphans.component';
import {DaoContractComponent} from "./explorer/DaoContract/dao-contract.component";
import { ContractDaoComponent } from "./explorer/contract-dao/contract-dao.component";

const routes: Routes = [
{
Expand Down Expand Up @@ -131,7 +131,7 @@ const routes: Routes = [
}
},
{
path: ':chain/explorer/dao-contract/:address', component: DaoContractComponent, resolve: {
path: ':chain/explorer/contract-dao/:address', component: ContractDaoComponent, resolve: {
chain: LoadingResolverService
}
},
Expand Down Expand Up @@ -173,7 +173,7 @@ const routes: Routes = [
ContractAddressComponent,
ContractCodeComponent,
OrphansComponent,
DaoContractComponent
ContractDaoComponent
],
imports: [
BrowserModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class ContractAddressComponent implements OnInit, OnDestroy {
if (this.transaction.contractCodeType == "DAOContract") {

this.contractCodeTypeLink = true;
this.contractCodeTypeLinkPath = "dao-contract";
this.contractCodeTypeLinkPath = "contract-dao";
this.contractCodeTypeLinkParam = this.transaction.contractAddress;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import {ActivatedRoute, Router} from "@angular/router";
import {SetupService} from "../../services/setup.service";

@Component({
selector: 'app-dao-contract-component',
templateUrl: './dao-contract.component.html'
selector: 'app-contract-dao-component',
templateUrl: './contract-dao.component.html'
})

export class DaoContractComponent implements OnInit,OnDestroy{
export class ContractDaoComponent implements OnInit,OnDestroy{
daoContract: any;
error: null;
totalDepositsAmount:number = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class ContractTransactionComponent implements OnInit, OnDestroy {
if (this.transaction.contractCodeType == "DAOContract") {

this.contractCodeTypeLink = true;
this.contractCodeTypeLinkPath = "dao-contract";
this.contractCodeTypeLinkPath = "contract-dao";

if (this.transaction.newContractAddress) {
this.contractCodeTypeLinkParam = this.transaction.newContractAddress;
Expand Down

0 comments on commit 5ec5473

Please sign in to comment.